home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Mac Tech Notes (DocViewer) / TN-Toolbox / TN-Toolbox.rsrc / TOC#_1000 < prev   
Encoding:
Text File  |  1993-01-05  |  12.6 KB  |  14 lines

  1. }BundlesHow to Create a BundleHow the Finder Uses BundlesProblems That May AriseFurther Reference:Calling SetResLoadFurther Reference:'CDEF' Parameters and BugsdrawCntl (0) and autoTrack (8)posCntl (5) and thumbCntl (6)
  2. _TrackControlFurther Reference:*ChangedResource: Too much of a good thing.Further Reference:0How To Produce Continuous Sound Without ClickingFurther Reference:Color, Windows and 7.0 Introduction Effects on existing applications!The Facts Ma’am, Just the Facts …But How Does It Work?*Figure 1  Active Window—Active scroll bars6Figure 2  Active Window—Horizontal scroll bar disabled+Figure 3  Inactive Window—Notice gray title•Dialog and Alert Boxes,Buttons, Radio Buttons, Check Boxes and Text4And for Those Who Eke Out a Living at the Deep End …#And You Thought It Would Never End!Further Reference:Control Manager Q&As=Use calcCntlRgn and calcThumbRgn instead of calcCRgn high bit%Debugging a Macintosh 'CDEF' resource8Color with Macintosh radio button and check box controls&Changing a Macintosh control’s variantControl Panel Q&As)Control Panel devices on the Macintosh SE6Main versus application screens with multiple displays7System 7 Finder filters Command-key messages from cdevs,'fwst' is window-position resource for cdevs;7.0 Finder intercepts Control Panel command key menu eventsCustom Menu Flashing BugNot on the MenuNo Substitutions Allowed For Example…Further Reference:'Resources Contained in the Desktop FileFurther Reference:Desktop Manager Q&As(System 6 versus System 7 Desktop Manager3Determining if Macintosh Desktop Manager is presentDialog Manager Q&As@9-point Geneva with a userItem proc requires TextFont & TextSize.Using Geneva 9 in Macintosh dialog text fields7DlgCut, Copy and Paste are OK for modeless dialog boxes-Color dialog boxes on Macintosh 68000 systems1Where to find WDEF for movable modal dialog boxes"Movable modal dialog WDEF 0 procID.C version of AppendDITL now in Snippets folder'Disabling the System 7 Application menu&Bug with Macintosh color alert windows@How to gray out & restore static text item of 'DITL' in a 'DLOG'Alert dialog not updating How to create an 'ictb' resource&Colorized controls and TextEdit fields&DialogDispatch and ShortenDITL routine5Where to find System 6 WDEF for movable modal dialogs&Alert ParamText problem and workaround>CouldDialog, CouldAlert, FreeDialog, FreeAlert not implemented+Don’t Use Resource Header Application BytesFurther Reference:Event Manager Q&As@Consistent application scrolling speed for all Macintosh systems&'SIZE' resource is32BitCompatible flag9'SIZE' resource bit and resume events in window title bar=Code snippet that uses StillDown and WaitMouseUp for dragging+Using GetKeys to check Macintosh key status4WaitNextEvent mouseRgn parameter & mouseMoved events3System 7 applications need to be background-capable<Help balloons & OSEventAvail between BeginUpdate & EndUpdate&Macintosh Finder and DoubleTime global3Events and switching between Macintosh applications1PostHighLevelEvent and sending low-level messages    FindDItemFurther Reference: Finder FlagsFurther Reference: Finder Q&As;Use Mac Finder for application file & folder icon placement2Forcing the Macintosh Finder to update the desktop?How often the Macintosh Finder updates its internal information/Where to find System 7 color icon documentation;Controlling which application version is launched by Finder=Using 'dast' resource to display “About…” DA under System 7.0Creating a Finder alias,Macintosh Finder extensions aren’t supported,Macintosh Finder’s 'fmnu' menu resource TMPL-FindFolder and saving application preferences?System 7 Tune-Up Finder 7.0/7.0.1 patch improves file copy time!System 7.0 and color volume icons9Types of unsupported Macintosh Finder window manipulation0Reason for Finder “trash can’t be emptied” alert3Saving as stationery for both Systems 6.0.x and 7.0/Old Finder information returned by PBGetCatInfoQuitting System 7 Finder"Special Macintosh alias file types6Macintosh System 6.0.x Finder rules for emptying trash?What do all the bits in System 6 Finder’s 'LAYO' resource mean?Finders and Foreign DrivesIdentifying Foreign DrivesFormatting Foreign Drives Other Nifty Things to Know AboutError Returns from GetNewDialogFurther Reference:!GetNextEvent; Blinking Apple Menu The obviousThe not-so-obviousThe more subtleFurther Reference:Help Manager Q&AsNo pre-System 7 Help Manager0Help Manager menu command-key bug and workaround.Menu help balloons with application extensions3BalloonWriter 1.0f3 rez input file bug & workaround!Balloon Help and modeless dialogs$Balloon help for menus with submenusHelp for nested dialogsHelp menus with two menu bars$Balloon help for application windows9Displaying button help strings for Chooser device package0How to tell if a window is a help balloon window2HMShowBalloon styled TEHandle limit and workaround*Balloon help equivalent for System 6 users0Help balloons and short messages with long words*More than 239 characters in a help balloon$Workaround for help menu MenuKey bug$HMGetIndHelpMsg and 'hrct' resources.HMSetBalloonContents controls runaway balloons4HMSetMenuResID & kHMCompareItem with 'hmnu' resource@Changing the default help balloon for your Macintosh application5Help balloons can’t be attached to HyperCard palettes<Determining within HyperTalk whether balloon help is enabled)Macintosh Help Manager and resource filesControl Panel cdev Balloon Help#cdevs and foreign language balloons Key Mapping Introduction
  3. ADB Keyboards&Macintosh and Macintosh Plus KeyboardsHardware DependenciesRemapping the KeyboardRemap At Boot TimeRemap After Boot Time
  4. MPW Pascal'KCHR' Resource Format'KMAP' Resource FormatFurther Reference:'LDEF' MadnessThe HookThe Line
  5. The Sinker
  6. Solution A
  7. Solution BSafe Family ExperienceFurther Reference:List Manager Q&As<Avoid Macintosh List Manager for manipulating large matrices.Creating Macintosh columns with various widths-Code for putting a list in a modal dialog boxMenu Manager Q&As9OK to call GetMenu repeatedly except for 128K or 512K Mac@Forcing a pop-up menu to be drawn with extra space on right side9Detecting if a menu belongs to a Macintosh Desk Accessory5Help, Keyboard, and Application menu IDs don’t change-Technique for changing a Macintosh menu title1Associating Macintosh color icons with menu items9Code for drawing to a Macintosh window while menu is open/Dimming Macintosh menu items from a custom MDEF9TheMenu global and determining when a menu is pulled down2Using Shift and Option keys with menu Command keys,Moving a menu bar from one screen to another:No way to include a color icon with a Macintosh menu title+Long menus: Enabling or disabling >31 items-Enabling & disabling >31 Macintosh menu items?Changing fonts & font sizes displayed in Macintosh pop-up menus)DA code for inserting and removing a menuMacintosh tear-off menus1Lining up Macintosh submenus and 'SICN' resources$How to add icons to System 7.0 menus3Use dialog scrolling list instead of long menu list9Code for appending a menu item containing meta-charactersHelp for Movable Modal DialogsWhat’s involved"The Systems 'hmnu' string resource*An alternate 'hmnu' from your application #Using the alternate 'hmnu' resource'Removing the alternate 'hmnu' resource Further Reference:MultiFinder Miscellanea    SwitchingSuspend and Resume Events,Referencing Global Data (A5 and MultiFinder)    VBL TasksMPW Pascal 3.0    MPW C 3.0Completion RoutinesTime Manager TasksInterrupt Service RoutinesLaunching and MultiFinderThe Scrap and MultiFinder_UnmountVol and MultiFinderDisplaying a Splash ScreenThe Apple Menu and MultiFinderInterprocess Communication
  8. _PostEventMiscellaneous MiscellaneaFurther Reference:&Frequently Asked MultiFinder Questions/How can I tell if WaitNextEvent is implemented?THow can I tell if the MultiFinder Temporary Memory Allocation calls are implemented?>How can I tell if my application is running in the background?&When exactly does juggling take place?`Can I disable suspend/resume events by passing the appropriate event mask to WNE/GNE/EventAvail?(Should my application use WaitNextEvent?@Is there anything else that I can do to be MultiFinder friendly?&Can I use a debugger with MultiFinder?2What happened to animated icons under MultiFinder?8How can I ensure maximal compatibility with MultiFinder?Further Reference:“New” cdev Messages IntroductionFurther Reference:New Resource Manager CallsNotification ManagerUsing the Notification Manager2How the Notification Manager Handles NotificationsCreating a Notification RequestNotification Manager Routines$How to Call _NMInstall and _NMRemovePascalCFurther Reference:%Maximum Number of Resources in a FileFurther Reference:,OpenRFPerm: What your mother never told you.Further Reference:Shortcut for Owned Resources Further Reference:Parameters for MDEF Message #3Further Reference:Reserved Resource TypesFurther Reference:Resource Manager TipsOpenResFile BugGetMenu and ResErrProcFurther Reference:Resource Manager Q&AsMacintosh resource ID numbering?Locate Macintosh folder first with FindFolder before OpenRFPerm9HOpenResFile with fsRdPerm permission returns unique path,Removing Macintosh resources during shutdownChanging a Macintosh resource2System 7.0 Resource Manager resource decompressionHOpenResFile versus OpenResFile0Partial resources and compressed resource format Getting Macintosh system strings?Pre-load resources & calling OpenResFile on another application<Maximum number of items in a Macintosh resource file is 27275Maximum Macintosh resource size is “maxlongint” bytesScrap Manager Q&AsWhen to call GetScrap0Clipboard window should be hidden in MultiFinderSeparate Resource FilesFurther Reference:%'SICN' Tired of Large Icons in Menus?How to Add Less Reduced Icon
  9. Small IconBFigure 1–Menu Containing a 'SICN', an 'ICON', and a Reduced 'ICON'You Win Some; You Lose SomeFurther Reference:Sound Input Q&As4Macintosh IIsi sound input documentation and samplesSound Manager Q&As5How to play Macintosh sounds in a continuous sequence!Sound Manager versus Sound Driver.Specifying a Macintosh Sound Manager frequency>Which Macintosh systems support internal speaker stereo mixing9Macintosh code and instructions for generating dial tones)Macintosh sndRecord filter proc structure=SndPlayDoubleBuffer doesn’t work on Macintosh Plus or Classic#SndDoImmediate versus SndDoCommands0SndStartFilePlay 20,000-byte minimum buffer size/Playing 16-bit sound data from a Macintosh disk=SndStartFilePlay: no NIL sound channel for asynchronous plays.Where to get Macintosh sound compression specs*Playing a sound from a Macintosh interrupt'Correct value of Macintosh initNoInterp+Determining Macintosh Sound Manager version6Using the Sound Manager to produce desired frequencies8How can I play more than one Macintosh sample at a time?>Why Macintosh system crashes when StartSound is launched twice9Changing the pitch of a sample in Macintosh Sound Manager=Specifying different frequencies for the Macintosh Note Synth;How to minimize clicking sound when using Mac Sound Manager/Macintosh Sound Manager changes in System 6.0.4SetupAIFFHeader bugHow to get MACE algorithms3Macintosh System 6.0.5/MACE problem fixed for 6.0.7 MACE-compressed sound -201 errorMPW C sound.h header file fix'Strip With _OpenResFile and _OpenRFPerm
  10. MPW PascalMPW C
  11. MPW PascalMPW CFurther Reference:
  12. Toolbox KarmaRules, Rules, RulesTraps Are Here to Stay%Data Structures Are Subject to Change"Write Robust Definition ProceduresUse Globals With CautionYour Future is Apple’s FutureFurther Reference:Pending Update Perils IntroductionThe Update And Modal DialogYuck, that’s nasty!In MPW C
  13. In MPW Pascal0If you do some, you have to do a little more....+New System 7 Dialog Manager call interfacesMPW C
  14. MPW Pascal MPW AssemblyMPW C
  15. MPW PascalThe System 6 WayMPW C
  16. MPW Pascal
  17. ConclusionFurther Reference:User Items in Dialogs%Defining a Dialog Box with a userItem,Loading and Preparing to Show the Dialog BoxIn MPW Pascal:
  18. In MPW C 3.0:In MPW Pascal:
  19. In MPW C 3.0:Invoking the Dialog BoxIn MPW Pascal:
  20. In MPW C 3.0:*Using userItem Items with Modeless DialogsFurther Reference-Problem with WaitNextEvent in MultiFinder 1.0Further Reference:Custom WDEF and wDrawProblem & Solution:Window Manager Q&As=How to determine Mac window title bar height for localization>Code for implementing a Macintosh grow box but not scroll bars(Macintosh tool palette windoid reference3Implementing Macintosh floating windows or palettes$How the system WDEF determines color'Detaching a WDEF from its resource file Custom WDEFs in DAs not possibleMacintosh DA with custom 'WDEF'WMgrPortabilityBewareWMgrPort and GrayRgnRulesExamplesHow to do these effectsWDEFs and MDEFsFurther Reference: _ZoomWindowBasics
  21. MPW PascalMPW C+For the More Adventurous (or Seeing Double)Further Reference: